import service from '../utils/request'
import Api from "./serviceApi";

export function  getAll(data:any){
    return service({
        url: Api.common.end.getAll,
        method: 'get',
        params: data
    })
}

export function  getAllRole(data:any){
    return service({
        url: Api.common.end.getAllRole,
        method: 'get',
        params: data
    })
}

export function forcedExit(data:any){
    return service({
        url: Api.common.end.forcedExit,
        method: 'post',
        headers:{
            "Content-Type":"application/json;charset-utf-8" //设置一下请求头
        },
        data
    })
}

export function deleteUser(data:any){
    return service({
        url: Api.common.end.delete,
        method: 'post',
        headers:{
            "Content-Type":"application/json;charset-utf-8" //设置一下请求头
        },
        data
    })
}